﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Mbs.Windows;

namespace Mbs.Sample
{
    public partial class ElementMapView : UserControlView, IElementMapView
    {
        public ElementMapView()
        {
            InitializeComponent();
        }

        public override IEnumerator<IDisposable> Attach()
        {
            yield return CommandNames.ShowCustomer.Attach(btnShow, "Click");
            yield return CommandNames.DisableShowCustomer.Attach(btnDisable, "Click");
            yield return CommandNames.EnableShowCustomer.Attach(btnEnable, "Click");
            yield return CommandNames.HideShowCustomer.Attach(btnHidden, "Click");
            yield return CommandNames.Exit.Attach(btnExit, "Click");
        }
    }
}
